package com.bestcem.xm.txtanls.entity.mysql;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;
import java.util.List;

/**
 * 文本分析话题表DO
 *
 * @author hang.li <hang.li@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/27 11:44
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
public class TopicEntity {

    /**
     * 话题表id(主键)
     */
    private String topicId;

    /**
     * 项目id
     */
    private String projectId;

    /**
     * 话题组id
     */
    private String groupId;

    /**
     * 话题/话题组名称
     */
    private String name;

    /**
     * 话题类型 {@link com.bestcem.xm.txtanls.grpc.v1.enums.TopicTypeEnum}
     */
    private Integer type;

    /**
     * 话题状态 {@link com.bestcem.xm.txtanls.enums.TopicStatusEnum}
     */
    private Integer status;

    /**
     * 话题关键字,格式：["好吃","高大上","你好"]
     */
//    private List<KeywordEntity> keywords;
    private String keywords;
    /**
     * 建用户id
     */
    @TableField(value = "creator_id", jdbcType = JdbcType.BINARY)
    private String creatorId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 新用户id
     */
    @TableField(value = "operator_id", jdbcType = JdbcType.BINARY)
    private String operatorId;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
    
    /**
     * 话题组下的话题
     */
    private List<TopicEntity> topics;

    /**
     * 是否是示例数据
     */
    private Boolean sample;
}
